package com.seniorproject.aims;

import java.util.Date;
import java.util.Calendar;
import java.sql.Timestamp;

public class KeyGen {

	public static String genTimeStamp(){
		Date date = new Date();
    	String temp_year = date.getYear()+1900+"";
		String temp_month = date.getMonth()+1+"";
		String temp_date = date.getDate()+"";
		String temp_hour = date.getHours()+"";
		String temp_minute = date.getMinutes()+"";
		String temp_second = date.getSeconds()+"";
    	
		
		Calendar calendar = Calendar.getInstance();
		calendar.setTime(date);
		
		
        String key =  temp_year+temp_month+temp_date+temp_hour+temp_minute+temp_second+System.currentTimeMillis() ;
        
        return key;
	}
	
	
	

}
